﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000949 RID: 2377
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class IDAMGIHKEOP : IMessage<IDAMGIHKEOP>, IMessage, IEquatable<IDAMGIHKEOP>, IDeepCloneable<IDAMGIHKEOP>, IBufferMessage
	{
		// Token: 0x17001E22 RID: 7714
		// (get) Token: 0x06006AAE RID: 27310 RVA: 0x0011E99B File Offset: 0x0011CB9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<IDAMGIHKEOP> Parser
		{
			get
			{
				return IDAMGIHKEOP._parser;
			}
		}

		// Token: 0x17001E23 RID: 7715
		// (get) Token: 0x06006AAF RID: 27311 RVA: 0x0011E9A2 File Offset: 0x0011CBA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return IDAMGIHKEOPReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001E24 RID: 7716
		// (get) Token: 0x06006AB0 RID: 27312 RVA: 0x0011E9B4 File Offset: 0x0011CBB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return IDAMGIHKEOP.Descriptor;
			}
		}

		// Token: 0x06006AB1 RID: 27313 RVA: 0x0011E9BB File Offset: 0x0011CBBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IDAMGIHKEOP()
		{
		}

		// Token: 0x06006AB2 RID: 27314 RVA: 0x0011E9CE File Offset: 0x0011CBCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IDAMGIHKEOP(IDAMGIHKEOP other) : this()
		{
			this.selectMagicUnits_ = other.selectMagicUnits_.Clone();
			this.selectHintId_ = other.selectHintId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006AB3 RID: 27315 RVA: 0x0011EA04 File Offset: 0x0011CC04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IDAMGIHKEOP Clone()
		{
			return new IDAMGIHKEOP(this);
		}

		// Token: 0x17001E25 RID: 7717
		// (get) Token: 0x06006AB4 RID: 27316 RVA: 0x0011EA0C File Offset: 0x0011CC0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueMagicGameUnitInfo> SelectMagicUnits
		{
			get
			{
				return this.selectMagicUnits_;
			}
		}

		// Token: 0x17001E26 RID: 7718
		// (get) Token: 0x06006AB5 RID: 27317 RVA: 0x0011EA14 File Offset: 0x0011CC14
		// (set) Token: 0x06006AB6 RID: 27318 RVA: 0x0011EA1C File Offset: 0x0011CC1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectHintId
		{
			get
			{
				return this.selectHintId_;
			}
			set
			{
				this.selectHintId_ = value;
			}
		}

		// Token: 0x06006AB7 RID: 27319 RVA: 0x0011EA25 File Offset: 0x0011CC25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as IDAMGIHKEOP);
		}

		// Token: 0x06006AB8 RID: 27320 RVA: 0x0011EA34 File Offset: 0x0011CC34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(IDAMGIHKEOP other)
		{
			return other != null && (other == this || (this.selectMagicUnits_.Equals(other.selectMagicUnits_) && this.SelectHintId == other.SelectHintId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006AB9 RID: 27321 RVA: 0x0011EA84 File Offset: 0x0011CC84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.selectMagicUnits_.GetHashCode();
			if (this.SelectHintId != 0U)
			{
				num ^= this.SelectHintId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006ABA RID: 27322 RVA: 0x0011EAD1 File Offset: 0x0011CCD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006ABB RID: 27323 RVA: 0x0011EAD9 File Offset: 0x0011CCD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006ABC RID: 27324 RVA: 0x0011EAE4 File Offset: 0x0011CCE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.selectMagicUnits_.WriteTo(ref output, IDAMGIHKEOP._repeated_selectMagicUnits_codec);
			if (this.SelectHintId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.SelectHintId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006ABD RID: 27325 RVA: 0x0011EB34 File Offset: 0x0011CD34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.selectMagicUnits_.CalculateSize(IDAMGIHKEOP._repeated_selectMagicUnits_codec);
			if (this.SelectHintId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectHintId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006ABE RID: 27326 RVA: 0x0011EB88 File Offset: 0x0011CD88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(IDAMGIHKEOP other)
		{
			if (other == null)
			{
				return;
			}
			this.selectMagicUnits_.Add(other.selectMagicUnits_);
			if (other.SelectHintId != 0U)
			{
				this.SelectHintId = other.SelectHintId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006ABF RID: 27327 RVA: 0x0011EBD5 File Offset: 0x0011CDD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006AC0 RID: 27328 RVA: 0x0011EBE0 File Offset: 0x0011CDE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SelectHintId = input.ReadUInt32();
					}
				}
				else
				{
					this.selectMagicUnits_.AddEntriesFrom(ref input, IDAMGIHKEOP._repeated_selectMagicUnits_codec);
				}
			}
		}

		// Token: 0x040028C0 RID: 10432
		private static readonly MessageParser<IDAMGIHKEOP> _parser = new MessageParser<IDAMGIHKEOP>(() => new IDAMGIHKEOP());

		// Token: 0x040028C1 RID: 10433
		private UnknownFieldSet _unknownFields;

		// Token: 0x040028C2 RID: 10434
		public const int SelectMagicUnitsFieldNumber = 4;

		// Token: 0x040028C3 RID: 10435
		private static readonly FieldCodec<RogueMagicGameUnitInfo> _repeated_selectMagicUnits_codec = FieldCodec.ForMessage<RogueMagicGameUnitInfo>(34U, RogueMagicGameUnitInfo.Parser);

		// Token: 0x040028C4 RID: 10436
		private readonly RepeatedField<RogueMagicGameUnitInfo> selectMagicUnits_ = new RepeatedField<RogueMagicGameUnitInfo>();

		// Token: 0x040028C5 RID: 10437
		public const int SelectHintIdFieldNumber = 14;

		// Token: 0x040028C6 RID: 10438
		private uint selectHintId_;
	}
}
